package com.cnzhy.reference;

import org.junit.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.core.convert.converter.Converter;

/**
 * @Author: zhaoyan5
 */
@SpringBootTest
public class MethodReferenceTest {

    @Test
    public void testMethodReference() {
        Converter<String, Integer> converter = Integer::valueOf;
        Integer converted = converter.convert("123");
        System.out.println(converted);
    }

}



